﻿using FCP.Data.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FCP.Api.Models
{
    public class FCPSearchConfigModel
    {
        public t_form Form { get; set; }

        public SearchConfigModel SearchConfig { get; set; }
    }

    public class SearchConfigModel
    {
        public SearchConfigModel()
        {
            this.Fields = new List<SearchFieldConfigModel>();
        }
        public string Code { get; set; }

        public t_search Search { get; set; }

        public List<SearchFieldConfigModel> Fields { get; set; }
    }

    public class SearchFieldConfigModel
    {
        public t_search_field Field { get; set; }

        public List<SearchFieldFilterConfigModel> FilterFields { get; set; } = new List<SearchFieldFilterConfigModel>();
    }

    public class SearchFieldFilterConfigModel
    {
        public t_search_field_filter_field FilterField { get; set; }
    }
}
